package org.tempuri;

public class ServiceSoapProxy implements org.tempuri.ServiceSoap {
  private String _endpoint = null;
  private org.tempuri.ServiceSoap serviceSoap = null;
  
  public ServiceSoapProxy() {
    _initServiceSoapProxy();
  }
  
  public ServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initServiceSoapProxy();
  }
  
  private void _initServiceSoapProxy() {
    try {
      serviceSoap = (new org.tempuri.ServiceLocator()).getServiceSoap();
      if (serviceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)serviceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)serviceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (serviceSoap != null)
      ((javax.xml.rpc.Stub)serviceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.ServiceSoap getServiceSoap() {
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap;
  }
  
  public java.lang.String editpass(java.lang.String oldpass, java.lang.String newpass, java.lang.String scpid) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.editpass(oldpass, newpass, scpid);
  }
  
  public java.lang.String[] getSubmitErrorlist(java.lang.String uid, java.lang.String pass, java.lang.String begtime, java.lang.String endtime) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.getSubmitErrorlist(uid, pass, begtime, endtime);
  }
  
  public java.lang.String subPortSendMessage(java.lang.String uid, java.lang.String upass, java.lang.String subport, java.lang.String messid, int pid, java.lang.String phone, java.lang.String message) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.subPortSendMessage(uid, upass, subport, messid, pid, phone, message);
  }
  
  public org.tempuri.WBnameE2 WBname(java.lang.String tel, org.tempuri.WBnameE1 getkind, java.lang.String uid, java.lang.String pass) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.WBname(tel, getkind, uid, pass);
  }
  
  public org.tempuri.WBnameE2 WBname1(java.lang.String[] tel, org.tempuri.WBnameE1 getkind, java.lang.String uid, java.lang.String pass) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.WBname1(tel, getkind, uid, pass);
  }
  
  public java.lang.String[] getMoMessage(java.lang.String uid, java.lang.String upass) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.getMoMessage(uid, upass);
  }
  
  public java.lang.String[] getMoMessage1(java.lang.String uid, java.lang.String upass, java.lang.String smId, int count) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.getMoMessage1(uid, upass, smId, count);
  }
  
  public java.lang.String[] getMoMessageSubport(java.lang.String uid, java.lang.String upass, int count) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.getMoMessageSubport(uid, upass, count);
  }
  
  public java.lang.String mutilSendMessage(java.lang.String uid, java.lang.String upass, int pid, java.lang.String[] messageFile) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.mutilSendMessage(uid, upass, pid, messageFile);
  }
  
  public java.lang.String sendMessage(java.lang.String uid, java.lang.String upass, java.lang.String messid, int pid, java.lang.String phone, java.lang.String message) throws java.rmi.RemoteException{
    if (serviceSoap == null)
      _initServiceSoapProxy();
    return serviceSoap.sendMessage(uid, upass, messid, pid, phone, message);
  }
  
  
}